{% extends '::base.html.twig' %}
{% block body%}
    <div id='accordion'>
      {% for category in categorys %}
        <h2>{{ category.getName() }}</h2>
        <div class="left_box">
          {% for staff in category.getStaffs() %}
            <div style="height: 150px;">
            <img src="{{ asset(staff.getWebPath()) }}" class="image" alt="Big Image" />
            <h3>{{ staff.getName() }}</h3>
            <p>{{ staff.getDescription()|raw }}</p>
            <a href="{{ path('_view_staff', {'staff_id': staff.getId()}) }}">Перейти</a>
            </div><br/>
          {% endfor %}
          </div>
      {% endfor %}			
    </div>
  {{ description }}
{% endblock %}
{% block post_init_javascript %}
{{ parent() }}
    $("#accordion").accordion({ header: "h2" });
{% endblock %}